<?php
class AdminUserForm extends EditUserForm
{
  function configure()
  {
    parent::configure();
    
    $profile_form=new sfGuardUserProfileForm($this->getObject()->getProfile());
    
    if ($this->isNew())
    {
      unset($profile_form['id'],$profile_form['user_id']);
    }
    
    $this->embedForm('profile',$profile_form);
  }
}
